Jekyll undefined method [] for nil
If you get
C:\Users\Desktop\Projects\websites\website.com>start_jekyll.bat
jekyll 4.3.2 | Error: undefined method `[]' for nil
C:/Dev/Ruby33-x64/lib/ruby/3.3.0/logger.rb:384:in `level': undefined method `[]' for nil (NoMethodError)
@level_override[Fiber.current] || @level
^^^^^^^^^^^^^^^
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.3.2/lib/jekyll/log_adapter.rb:45:in `adjust_verbosity'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.3.2/lib/jekyll/configuration.rb:143:in `config_files'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.3.2/lib/jekyll.rb:118:in `configuration'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.3.2/lib/jekyll/command.rb:44:in `configuration_from_options'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.3.2/lib/jekyll/commands/serve.rb:83:in `block (2 levels) in init_with_program'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `block in execute'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `each'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/command.rb:221:in `execute'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary/program.rb:44:in `go'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/mercenary-0.4.0/lib/mercenary.rb:21:in `program'
from C:/Dev/Ruby33-x64/lib/ruby/gems/3.3.0/gems/jekyll-4.3.2/exe/jekyll:15:in `<top (required)>'
from C:/Dev/Ruby33-x64/bin/jekyll:32:in `load'
from C:/Dev/Ruby33-x64/bin/jekyll:32:in `<main>'
Run
bundle update
This should fix the problem
Reference: